package com.cskaoyan.service;

import com.cskaoyan.bean.data.PageData;
import com.cskaoyan.bean.vo.OrderCommentParameter;
import com.cskaoyan.bean.data.OrderDetailData;
import com.cskaoyan.bean.data.UserIndexData;
import com.cskaoyan.model.MarketOrder;
import com.cskaoyan.model.MarketOrderGoods;

import java.util.Map;

public interface OrderService {
    Map submit(int userId, Map<String, Object> parameterMap);

    PageData list(Integer userId, Integer page, Integer limit, Integer showType);

    OrderDetailData detail(Integer orderId);

    void refund(Integer orderId);

    void cancel(Integer orderId);

    void delete(Integer orderId);

    void confirm(Integer orderId);

    MarketOrderGoods goods(Integer orderId, Integer goodsId);

    void comment(OrderCommentParameter parameter, int userId);

    void prepay(Integer orderId);

    UserIndexData userIndex(Integer userId);

    MarketOrder findById(Integer orderId);

    int updateAftersaleStatus(Integer orderId);
}
